package site.anxuan.seckill.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 业务异常类
 *
 * @author 黯玄
 * @since v1.0
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class BusinessException extends RuntimeException{

    /** 异常码 */
    private int code;

    /** 异常信息 */
    private String message;

}
